package com.spar.openprojects.server.datasource;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import com.sql.database.IConnectionFactory;

public class DatasourceInformixETime implements IConnectionFactory {
	@Override
	public Connection createConnection() {
		Connection con = null;
		try {
			Class.forName("com.informix.jdbc.IfxDriver");

			String url = "jdbc:informix-sqli://atuxdbp01:22262/sparetime:informixserver=pcpserver";

			con = DriverManager.getConnection(url, "informix", "jet");
		} catch (SQLException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
		return con;
	}
}
